package team.scau.laboratory_repair.modules.po;

import lombok.*;
import team.scau.laboratory_repair.common.base.BaseModel;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.sql.Timestamp;

/**
 * @author 30254
 * creadtedate:2018/10/25
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "lab_note")
public class Note extends BaseModel {
    @Builder
    public Note(Long id, Timestamp createTime, Timestamp updateTime, Timestamp deleteTime, Boolean valid, Long recordId, String staff, String remark) {
        super(id, createTime, updateTime, deleteTime, valid);
        this.recordId = recordId;
        this.staff = staff;
        this.remark = remark;
    }

    @Column
    private Long recordId;
    @Column
    private String staff;
    @Column
    private String remark;
}
